// JavaScript Document
   
//document.domain="99anju.com";
 /**
    登录验证
	验证用户名和密码不能为空
	密码MD5转换
	
 */
function VerifyData(loginUser,password,message) {
	if(document.getElementById(loginUser).value.length==0 ||document.getElementById(password).value.length==0 ){
		document.getElementById(message).innerHTML="登录帐户名、密码不能为空！";
		return false;
	}
	var p = document.getElementById(password).value;
    	var md5p = hex_md5(p);
	document.getElementById(password).value=md5p;
	document.LoginForm.action="/adminAuth/signin";

}
function subVerifyData(loginUser,password,message) {
	if(document.getElementById(loginUser).value.length==0 ||document.getElementById(password).value.length==0 ){
		document.getElementById(message).innerHTML="<img src='http://img.99anju.com/icon/error.gif' align='absmiddle'>&nbsp;&nbsp;登录帐户名、密码不能为空！";
		return false;
	}
	var p = document.getElementById(password).value;
    	var md5p = hex_md5(p);
	document.getElementById(password).value=md5p;
	document.LoginForm.action="/auth/subSignin";
}
  function RefreshImage(id) {
    var el = document.getElementById(id);
    el.src = '/jcaptcha/jpeg/loginImageCaptcha?id=' + Math.random();//这个特别重要
  }

